<import type='js' file="Main.Js.compatibility" />
<import type='css' file="Setting.Css.user-setting" />

<script type="text/javascript">
	$(function(){

		var state = "{$_SESSION['state']}";

		// alert(state);

		// alert(state);
		if (state != '') {
			if(state == 1){
				$('#state').text('正在审核');

				$('#verify_form').find('input').attr({
					disabled: 'disabled'
				
				});

			}else if(state == 2){
				$('#state').text('已认证');
			}

		}else{
			$('#state').text('未认证');

		}

	})


</script>
<div class="aw-container-wrap">
	<div class="container">
		<div class="row">
			<div class="aw-content-wrap clearfix">
				<div class="aw-user-setting">
					<div class="tabbable">
						<ul class="nav nav-tabs aw-nav-tabs active">
							<li class="active"><a href="{:U('Home/Setting/verify/')}">申请认证</a></li>
							<li><a href="{:U('Home/Setting/security/')}">安全设置</a></li>
							<li><a href="{:U('Home/Setting/upload/')}">头像上传</a></li>
							<li><a href="{:U('Home/Setting/people/')}">基本资料</a></li>
							
							<h2><i class="icon icon-setting"></i> 用户设置</h2>
						</ul>
					</div>
					
					<div class="tab-content clearfix">
<div class="aw-mod">
	<div class="mod-body">
		<div class="aw-mod">
			<div class="mod-head">
				<h3>申请认证</h3>
			</div>
			<form id="verify_form" method="post" action="__ROOT__/index.php/Home/Setting/verify" enctype="multipart/form-data" class="form-horizontal">
				<div class="mod-body">
					<div class="form-group">
						<label class="col-lg-2 control-label">当前状态:</label>
						<div class="col-lg-10" id ='state'>
							未认证	
						</div>
					</div>
					<div class="form-group">
						<label class="col-lg-2 control-label">认证类型:</label>
						<div class="col-lg-10">
						    <input name="type" class="apply-type" value="个人认证" id="type_personal" checked="checked" type="radio"> 个人认证 &nbsp;
						    <input name="type" class="apply-type" value="机构认证" id="type_enterprise" type="radio"> 机构认证						
						</div>
					</div>
					<div class="form-group">
						<label class="col-lg-2 control-label verify-name"><span>真实姓名</span>:</label>
						<div class="col-lg-4">
						    <input class="form-control" name="name" value="" type="text">
						</div>
					</div>
					
					<div class="form-group">
						<label class="col-lg-2 control-label verify-code">
							<span>身份证号码</span>:</label>
						<div class="col-lg-4">
						    <input class="form-control" name="idcard" value="" type="text">
						</div>
					</div>
					
					<div class="form-group">
						<label class="col-lg-2 control-label">联系方式:</label>
						<div class="col-lg-8">
						    <input class="form-control" name="phone" value="" type="text">
						</div>
					</div>   
					<div class="form-group">
						<label class="col-lg-2 control-label">认证说明:</label>
						<div class="col-lg-8">
						    <input class="form-control" name="instruction" value="" type="text">
						</div>
					</div> 
					<div class="form-group" id="upload-attach">
						<label class="col-lg-2 control-label">附件:</label>
						<div class="col-lg-8">
							<a class="btn btn-mini btn-default">上传附件</a>
							<span class="text-color-999 upload-url"></span>
							<p class="text-color-999">请提交对应的身份证或者组织机构代码证件扫描</p>
							<input name="attach" class="upload-attach form-control hide" onchange="$('.upload-url').html($(this).val());" type="file">
						</div>
					</div>  
				</div>
			
			<div class="mod-footer clearfix">
				<input type="submit" class="btn btn-large btn-success pull-right" value="提交">
			</div>
			</form>
		</div>
	</div>
</div>



<script type="text/javascript">
	$(function()
	{
		$('#type_personal').click(function()
		{
			$('.verify-name span').html(_t('真实姓名'));
			$('.verify-code span').html(_t('身份证号码'));
		});
		
		$('#type_enterprise').click(function()
		{
			$('.verify-name span').html(_t('企业名称'));
			$('.verify-code span').html(_t('组织机构代码'));
		});
		
		$('input.apply-type:checked').click();
		
			});
</script>

					</div>
				</div>
			</div>
		</div>
	</div>
</div>